<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'displayShareFile.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
</head>

<body>
<table border="0" width="90%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big" width="270"><img
			src="<%=basePath%>/img/menu/training.gif" align="absmiddle"><span
			class="big3"> 查看公共文件</span><br>
		</td>

	</tr>
</table>
<c:choose>
	<c:when test="${isempty eq 'y'}">
		<table class="MessageBox" align="center" width="300">
			<tr>
				<td class="msg info">
				<div class="content" style="font-size: 12pt">该文件夹尚无文件</div>
				</td>
			</tr>
		</table>


	</c:when>
	<c:otherwise>
		<table class="TableBlock" width="700" align="center">

			<tr>
				<td class="TableHeader">文件名：</td>
				<td class="TableHeader" align="center"><b><span
					class="big">${file.fileName }</span><font color="#FF0000"></font></b></td>
			</tr>
			<tr>
				<td class="tdstyle">备注：</td>
				<td class="TableData Content" height="50" valign="top">${file.remark
				}</td>
			</tr>
			<tr class=small>
				<td class="tdstyle">附件：</td>
				<td class="TableData" width="500"><span id="attach_24ca98f6">
				<img src="<%=basePath%>/img/file/txt.gif" align="absmiddle"> <a
					class="attach_name" href="${file.fileURL }">${fName }</a></span>&nbsp;(${file.fileSize
				}kb)<br>
				</td>
			</tr>

			<tr class=small>
				<td class="tdstyle">共享人：</td>
				<td class="TableData" width="500">${file.userName }</td>
			</tr>

			<tr class=small>
				<td class="tdstyle">上传时间：</td>
				<td class="TableData" width="500">${file.uploadTime }</td>
			</tr>

			<tr align="center" class="TableControl">
				<td colspan="2"><input type="button" value="下载文件"
					class="BigButton" onClick="downloadFile()">&nbsp;&nbsp; <input
					type="button" value="返回" class="BigButton"
					onClick="history.back();"></td>
			</tr>
		</table>
	</c:otherwise>
</c:choose>

</body>
</html>
